const Token = 'Token'

// 存储token
export function setToken (token) {
  window.localStorage.setItem(Token, JSON.stringify(token))
}
// 获取token
export function getToken () {
  return JSON.parse(window.localStorage.getItem(Token))
}

// 删除token
export function DelToken () {
  window.localStorage.removeItem(Token)
}
/**
 * 封装token 持久化
 *1、存储
 2、获取
 3、删除
 */
// key 名字
const big_token = 'big_token'
export function setToken1 (token) {
  localStorage.setItem(big_token, token)
}
// 获取
export function getToken1 () {
  return localStorage.getItem(big_token)
}
export function DELToken1 () {
  return localStorage.removeItem(big_token)
}
